package com.boot.learn3210ldap;

import lombok.Data;
import org.springframework.ldap.odm.annotations.*;

import javax.naming.Name;

/**
 * Created by Wuxiang on 2018/2/10
 */
@Data
@Entry(base = "ou=people,dc=yxrswx,dc=com", objectClasses = "inetOrgPerson")
public class Person {

    @Id
    private Name id;

    @DnAttribute(value = "uid", index = 3)
    private String uid;

    @Attribute(name = "cn")
    private String commonName;

    @Attribute(name = "sn")
    private String suerName;

    private String userPassword;

}
